/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DialogoDetalleCarteraPendienteDevolucion.java
 *
 * Created on 26/11/2012, 01:33:33 AM
 */
package gui;

import javax.swing.JLabel;
import javax.swing.table.DefaultTableCellRenderer;
import modelo.ModeloCarteraPendienteDevolucion;

/**
 *
 * @author Administrador
 */
public class DialogoDetalleCarteraPendienteDevolucion extends javax.swing.JDialog {

    private ModeloCarteraPendienteDevolucion modelo;
    
    /** Creates new form DialogoDetalleCarteraPendienteDevolucion */
    public DialogoDetalleCarteraPendienteDevolucion(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        modelo = new ModeloCarteraPendienteDevolucion();
        tblpedidosPendientesDevolucion.setModel(modelo);
        tblpedidosPendientesDevolucion.getTableHeader().setReorderingAllowed(false);
        ((DefaultTableCellRenderer) tblpedidosPendientesDevolucion.getTableHeader().getDefaultRenderer()).setHorizontalAlignment(JLabel.CENTER);
        this.setSize(700, 280);
        this.setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        scrPedidosPendientesDevolución = new javax.swing.JScrollPane();
        tblpedidosPendientesDevolucion = new javax.swing.JTable();
        lblTitulo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(".:: Pedidos pendientes de devolución ::.");

        tblpedidosPendientesDevolucion.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrPedidosPendientesDevolución.setViewportView(tblpedidosPendientesDevolucion);

        getContentPane().add(scrPedidosPendientesDevolución, java.awt.BorderLayout.CENTER);

        lblTitulo.setBackground(new java.awt.Color(41, 101, 148));
        lblTitulo.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblTitulo.setForeground(new java.awt.Color(255, 255, 255));
        lblTitulo.setText("Pedidos pendientes de devolución");
        lblTitulo.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 4, 2, 1));
        lblTitulo.setOpaque(true);
        getContentPane().add(lblTitulo, java.awt.BorderLayout.PAGE_START);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(DialogoDetalleCarteraPendienteDevolucion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(DialogoDetalleCarteraPendienteDevolucion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(DialogoDetalleCarteraPendienteDevolucion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(DialogoDetalleCarteraPendienteDevolucion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                DialogoDetalleCarteraPendienteDevolucion dialog = new DialogoDetalleCarteraPendienteDevolucion(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JScrollPane scrPedidosPendientesDevolución;
    private javax.swing.JTable tblpedidosPendientesDevolucion;
    // End of variables declaration//GEN-END:variables
}
